cmake_minimum_required(VERSION 3.16)
project(bsTest)
set(CMAKE_CXX_STANDARD 20)
include_directories(bzip)

# /home/mi/图片/1.jpg /home/mi/图片/2.jpg /home/mi/图片/1-2.patch diff
set(bzip bzip/blocksort.c bzip/bzlib.c bzip/compress.c bzip/crctable.c bzip/decompress.c bzip/format.pl bzip/huffman.c bzip/randtable.c)
add_library(bzip  ${bzip})

add_executable(bsdiff bsdiff.c)
add_executable(bspatch bspatch.c)

target_link_libraries(
        bsdiff
        bzip
)

target_link_libraries(
        bspatch
        bzip
)